// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

/* 根据医保局样式规范调整 开始 */

.el-radio__input {
  &.is-disabled + span.el-radio__label {
    color: #c0c4cc;
  }
  &.is-checked .el-radio__inner {
    background: white;
    &:after {
      width: 8px;
      height: 8px;
      background-color: $color-primary;
    }
  }
}

.el-checkbox__input {
  &.is-disabled + span.el-checkbox__label {
    color: #c0c4cc;
  }
  &.is-checked {
    .el-checkbox__inner {
      &:after {
        top: 2px;
        left: 5px;
      }
    }
  }
  &.is-indeterminate {
    .el-checkbox__inner {
      &:after {
        top: 6px;
      }
    }
  }
}

.el-select {
  .el-tag.el-tag--info {
    background-color: #f0f2f5;
    color: #606266;
  }
  .el-tag__close.el-icon-close {
    background-color: #c0c4cc;
    color: darken(#c0c4cc, 40);
  }
  .el-input.is-disabled .el-input__inner:hover {
    border-color: $border-color;
  }
}

.el-tree-node__content {
  height: 40px;
}

.el-pagination.is-background {
  font-weight: normal;
  // height: 40px;
  padding: 0 10px;
  text-align: right;
  span:not([class*='suffix']) {
    height: 40px;
    line-height: 40px;
  }
  button.btn-prev,
  button.btn-next {
    margin-top: 6px;
    min-width: 20px;
  }
  button.btn-next {
    margin-right: 20px;
  }
  // .el-pagination__sizes {
  //   .el-input__inner {
  //     height: 20px;
  //     line-height: 20px;
  //   }
  //   .el-input__icon {
  //     line-height: 20px;
  //   }
  // }
  .el-pager {
    margin-top: 6px;
    // li {
    //   line-height: 20px;
    //   min-width: 20px;
    // }
  }
  .el-pagination__jump {
    margin-left: 10px;
    .el-input__inner {
      line-height: 20px;
    }
  }
  .el-pagination__total {
    float: left;
  }
}

.el-tabs__item.is-top.is-active {
  font-weight: bold;
}

.el-tabs__item.is-top {
  height: 48px;
  line-height: 48px;
}

.el-breadcrumb__item {
  .el-breadcrumb__inner {
    color: #606266;
    a {
      color: #606266;
    }
  }
  .el-breadcrumb__inner a:hover {
    color: #3ca0f6;
  }
}

.el-message-box--center {
  padding-bottom: 10px;
  .el-message-box__header {
    padding-left: 24px;
    padding-right: 16px;
    padding-top: 15px;
  }
  .el-message-box__title {
    justify-content: flex-start;
    .el-message-box__status {
      font-size: 22px !important;
      padding-right: 15px;
    }
  }
  .el-message-box__content {
    text-align: left;
    padding-top: 6px;
    padding-left: 62px;
  }

  .el-message-box__btns {
    text-align: right;
  }
}

.el-alert--success.is-light {
  background-color: #f1f9ec;
}

.el-alert--info.is-light {
  background-color: #e8eff8;
}

.el-alert--warning.is-light {
  background-color: #fdf6ed;
}

.el-alert--error.is-light {
  background-color: #fef0f0;
}

.el-alert__icon.is-big {
  & + .el-alert__content {
    padding-left: 14px;
  }
}

.el-tag:not(.el-tag--dark,.el-tag--plain){
  background-color: mix(#1b65b9, white, 15);
  border-color: mix(#1b65b9, white, 30);
  &.el-tag--success {
    background-color: mix(#67c23a, white, 15);
    border-color: mix(#67c23a, white, 30);
    color: #67c23a;
  }
  &.el-tag--warning {
    background-color: mix(#e6a23c, white, 15);
    border-color: mix(#e6a23c, white, 30);
    color: #e6a23c;
  }
  &.el-tag--danger {
    background-color: mix(#f56c6c, white, 15);
    border-color: mix(#f56c6c, white, 30);
    color: #f56c6c;
  }
}

.el-progress-bar__outer {
    background-color: #EBEEF5;
}

.el-progress-circle__track{
  stroke: #EBEEF5 !important;
}

.el-dialog__header{
  border-bottom:1px solid #F2F6FC;
  .el-dialog__title{
    position: relative;
    font-size: 16px;
    &:before{
      position: absolute;
      content: '';
      display: inline-block;
      width: 3px;
      height: 16px;
      background-color: #1B65B9;
      left: -8px;
      top: 0px;
    }
  }
}

.el-table thead{
  color: #303133;
}

/* 根据医保局样式规范调整 结束 */

/* element-ui 问题修正 开始 */

//https://github.com/ElemeFE/element/issues/14719
.el-checkbox-group{
  .el-checkbox {
    vertical-align: bottom;
  }
}
/* element-ui 问题修正 结束 */
